package com.liqw.activiti.service;

import org.activiti.engine.runtime.ProcessInstance;

import java.util.List;

public interface TaskService {
    /**
     * 启动
     */
    ProcessInstance start(String processDefinitionKey);

    /**
     * 提交
     */
    boolean submit(String taskId);

    /**
     * 驳回
     */
    boolean reject(String taskId);

    /**
     * 取消
     */
    boolean cancel(String taskId);

    /**
     * 转办
     */
    boolean transfer(String taskId);

    /**
     * 挂起
     */
    boolean pending(String taskId);
}
